package main

import "fmt"

func main() {
	m := map[int]string{1:"string1", 2:"string2"}
	// map作为参数是引用传递
	test(m)
	fmt.Println(m)
}

func test(m map[int]string)  {
	delete(m, 1)
}